@using BlazorApp.Pages.Common.Html.HTable
@using BlazorApp.Pages.Common.Metadata
@using BlazorApp.Pages.Event
@inherits BlazorApp.Pages.Common.DrawerPageBase<k8s.Models.V1EndpointSlice>
@if (EndpointSlice != null)
{
    <EndpointSliceAction Item="EndpointSlice" MenuMode="MenuMode.Horizontal"></EndpointSliceAction>
    <Divider Orientation="left" Style="font-weight:bold">@L["Metadata"]</Divider>
    <MetadataView Item="EndpointSlice.Metadata" ExplainFieldPrefix="endpointSlice"></MetadataView>
    <Divider Orientation="left" Style="font-weight:bold">@L["Spec"]</Divider>
    <HTable Bordered Column="1">
        <PropertySimpleView Title=@L["AddressType"] Item="@EndpointSlice.AddressType"
                            ExplainField="endpointSlice.addressType">
        </PropertySimpleView>
    </HTable>

    <EndpointSliceAddressView Title=@L["Addresses"] Endpoints="@(EndpointSlice.Endpoints)"></EndpointSliceAddressView>
    <EndpointSlicePortView Ports="@(EndpointSlice.Ports)"></EndpointSlicePortView>

    <MiniEventListView Uid="@EndpointSlice.Metadata.Uid"></MiniEventListView>
}
